FROM java:8
VOLUME /tmp
ADD mblog-latest.jar app.jar

#ENV TZ=Asia/Shanghai
#RUN ln -sf /usr/share/zoneinfo/{TZ} /etc/localtime && echo "{TZ}" > /etc/timezone
#
#RUN cd /build && mvn package -Dmaven.test.skip=true -Pdocker \
#    && cp -f target/mblog-latest.jar /app/mblog && rm -rf /build/*

EXPOSE 8080

ENTRYPOINT ["java","-Djava.security.egd=file:/dev/./urandom","-jar","/app.jar"]